package nbcb;

import java.util.Scanner;

public class I {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int end, ans;
        while (sc.hasNext()) {
            ans = 1;
            end = sc.nextInt();
            for (int i = 1; i < end; i++) {
                ans = (ans + 1) * 2;
            }
            System.out.println(ans);
        }
    }
}
